﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;

namespace NetSpider.Tests
{
    public class DocumentFetcherFactoryFixture
    {
        [Fact]
        public void Should_create_a_document_fetcher_for_http_schema()
        {
            IDocumentFetcherFactory factory = new DocumentFetcherFactory();

            IDocumentFetcher fetcher = factory.GetFetcherForUriScheme("http://foo.co.uk");

            Assert.IsType<HttpDocumentFetcher>(fetcher);
        }
    }
}
